<template>
  <el-input
    v-model="dataValue"
    :type="type"
    @input="valueChange"
    @blur="blur(dataValue)"
    v-bind="attribute" />
</template>
<script type="text/javascript">
import XMixIn from './XMixIn'
import XCommon from './XCommon'
export default {
  mixins: [XMixIn, XCommon],
  computed: {
    type () {
      if (this.item && this.item.form_type === 'password') {
        return this.item.form_type
      }
      return 'text'
    }
  }
}
</script>
